package com.ruoyi.app.utils;

/**
 * @Author caesar
 * @Date 2021/5/28 0028 14:23
 */
public enum ErrorCodeConstant {
    OK("0", "正常"),
    DISABLE("1", "停用"),
    DELETED("2", "删除"),
    TAKE_FOOD_SUCCESS("0000", "取餐成功!"),
    TAKE_FOOD_FAILED("1000", "取餐失败!"),
    QR_CODE_INVALID("1003", "二维码失效!"),
    TOPUP_FAILURE("1004", "充值失败!"),
    UPDATE_FOOD_STATUS_FAILURE("1005", "更新订单记录失败!"),
    BALANCE_LACK("1006", "当前余额不足!"),
    PLEASE_ORDER_FIRST("1007", "您没有点餐,请先点餐!"),
    MEAL_TIME_EXPIRED("1008", "当前不在饭点,谢谢！"),
    HAVE_TAKE_FOOD("1009", "当前已取餐!"),
    UPDATE_BILLS_DETAILS_FAILED("1010", "更新账目明细表失败!"),
    UPDATE_USER_BALANCE_FAILED("1011","更新用户余额失败!"),
    FAILED("1012", "操作失败!"),
    ;

    private final String code;
    private final String msg;

    ErrorCodeConstant(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
